//
//  DealModel.m
//  BaiTuan
//
//  Created by huiwenjiaoyu on 15/12/23.
//  Copyright © 2015年 YR. All rights reserved.
//

#import "DealModel.h"

@implementation DealModel

+ (NSArray *)dealsWithDic:(NSArray *)deals
{
    NSMutableArray *arrayM = [NSMutableArray array];
    for (NSDictionary *dic in deals) {
        
        [arrayM addObject:[[DealModel alloc] initContentWithDic:dic]];
    }
    return arrayM;
}

- (NSDictionary *)attributeMapDictionary:(NSDictionary *)jsonDic
{
    NSDictionary *dic = @{
                          @"description":@"dealDescription",
                          @"deal_id":@"deal_id",
                          @"image":@"image",
                          @"tiny_image":@"tiny_image",
                          @"title":@"title",
                          @"market_price":@"market_price",
                          @"current_price":@"current_price",
                          @"distance":@"distance",
                          @"score":@"score"
                          };
    return dic;
}

@end
